<template>
  <!-- 面试技巧列表选项组件 -->
  <div class="technicItem">
    <div class="left">
      <!--
            van-multi-ellipsis--l2:这是一段最多显示两行的文字，多余的内容会被省略
             -->
      <div class="top van-multi-ellipsis--l2">{{ info.title }}</div>
      <div class="bottom">
        <div class="b1">{{ info.updated_at | formatTime }}</div>
        <div class="b2 iconfont">&#xe644;</div>
        <div class="b3">{{ info.read }}</div>
        <div class="b4 iconfont">&#xe638;</div>
        <div class="b5">{{ info.star }}</div>
      </div>
    </div>
    <img v-if="info.cover" class="right" :src="$baseUrl + info.cover" alt="" />
  </div>
</template>

<script>
export default {
  props: ['info'],
  filter: {},
  data () {
    return {}
  }
}
</script>

<style lang="less" scoped>
.technicItem {
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  .left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .top {
      font-size: 16px;
      font-family: PingFangSC, PingFangSC-Medium;
      font-weight: 500;
      text-align: left;
      color: #181a39;
      line-height: 22px;
      letter-spacing: 0px;
    }
    .bottom {
      display: flex;
      align-items: center;
      font-size: 12px;
      color: #ccc;
      .b1 {
        flex: 1;
      }
      .b2 {
        margin-right: 7px;
      }
      .b3 {
        margin-right: 7px;
      }
      .b4 {
        margin-right: 7px;
      }
    }
  }
  .right {
    padding-left: 10px;
    width: 113px;
    height: 75px;
    object-fit: cover; // cover:等比处理,超过就裁切  contain:等比处理,全部显示,不够位置留白
  }
}
</style>
